﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualBasic;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 销售报告
    /// </summary>
    /// 
    public class SaleStatisticsDTO
    {
        /// <summary>
        /// 物料代码
        /// </summary>
        public Sale_data data { get; set; }
        /// <summary>
        /// 是否报错
        /// </summary>
        public bool error { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string errorText { get; set; }

    }
    public class Sale_data
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int page { get; set; }
        /// <summary>
        /// 是否存在下一页
        /// </summary>
        public bool isNextPage { get; set; }
        /// <summary>
        /// 数据列表
        /// </summary>
        public List<SaleStatistics> cards { get; set; }
    }
    public class SaleStatistics
    {
        public string ID { get; set; }
        public string RowId { get; set; }


        /// <summary>
        /// 产品ID
        /// </summary>
        public string nmID { get; set; }
        /// <summary>
        /// 产品编码	
        /// </summary>
        public string vendorCode { get; set; }
        /// <summary>
        /// 品牌	
        /// </summary>
        public string brandName { get; set; }
        /// <summary>
        /// 销售详情		
        /// </summary>
        public statistics_SaleStatistics statistics { get; set; }

        /// <summary>
        /// 查询开始时间		
        /// </summary>
        public string begin { get; set; }
        /// <summary>
        /// 查询结束时间		
        /// </summary>
        public string end { get; set; }
        /// <summary>
        /// 点击量		
        /// </summary>
        public string openCardCount { get; set; }
        /// <summary>
        /// 添加购物数量		
        /// </summary>
        public string addToCartCount { get; set; }
        /// <summary>
        /// 订单数量		
        /// </summary>
        public string ordersCount { get; set; }
        /// <summary>
        /// 订单金额		
        /// </summary>
        public string ordersSumRub { get; set; }
        /// <summary>
        /// 实际成交数量		
        /// </summary>
        public string buyoutsCount { get; set; }
        /// <summary>
        /// 实际成交金额		
        /// </summary>
        public string buyoutsSumRub { get; set; }
        /// <summary>
        /// 取消数量		
        /// </summary>
        public string cancelCount { get; set; }
        /// <summary>
        /// 取消金额		
        /// </summary>
        public string cancelSumRub { get; set; }
        /// <summary>
        /// 平均数量		
        /// </summary>
        public string avgOrdersCountPerDay { get; set; }
        /// <summary>
        /// 平均金额		
        /// </summary>
        public string avgPriceRub { get; set; }
        /// <summary>
        /// 加购转化率		
        /// </summary>
        public string addToCartPercent { get; set; }
        /// <summary>
        /// 订单转化率		
        /// </summary>
        public string cartToOrderPercent { get; set; }
        /// <summary>
        /// 下单转化率		
        /// </summary>
        public string buyoutsPercent { get; set; }

        /// <summary>
        /// 库存信息		
        /// </summary>
        public statistics_stocks stocks { get; set; }
        /// <summary>
        /// FBS库存余量	
        /// </summary>
        public string stocksMp { get; set; }
        /// <summary>
        /// 库存余量
        /// </summary>
        public string stocksWb { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        public string PrdType { get; set; }

    }

    public class statistics_SaleStatistics
    {

        /// <summary>
        /// 销售详情		
        /// </summary>
        public selectedPeriod_SaleStatistics selectedPeriod { get; set; }

    }

    public class selectedPeriod_SaleStatistics
    {

        /// <summary>
        /// 查询开始时间		
        /// </summary>
        public string begin { get; set; }
        /// <summary>
        /// 查询结束时间		
        /// </summary>
        public string end { get; set; }
        /// <summary>
        /// 点击量		
        /// </summary>
        public string openCardCount { get; set; }
        /// <summary>
        /// 添加购物数量		
        /// </summary>
        public string addToCartCount { get; set; }
        /// <summary>
        /// 订单数量		
        /// </summary>
        public string ordersCount { get; set; }
        /// <summary>
        /// 订单金额		
        /// </summary>
        public string ordersSumRub { get; set; }
        /// <summary>
        /// 实际成交数量		
        /// </summary>
        public string buyoutsCount { get; set; }
        /// <summary>
        /// 实际成交金额		
        /// </summary>
        public string buyoutsSumRub { get; set; }
        /// <summary>
        /// 取消数量		
        /// </summary>
        public string cancelCount { get; set; }
        /// <summary>
        /// 取消金额		
        /// </summary>
        public string cancelSumRub { get; set; }
        /// <summary>
        /// 平均数量		
        /// </summary>
        public string avgOrdersCountPerDay { get; set; }
        /// <summary>
        /// 平均金额		
        /// </summary>
        public string avgPriceRub { get; set; }
        /// <summary>
        /// 转化		
        /// </summary>
        public conversions conversions { get; set; }

    }

    public class conversions

    {
        /// <summary>
        /// 加购转化率		
        /// </summary>
        public string addToCartPercent { get; set; }
        /// <summary>
        /// 订单转化率		
        /// </summary>
        public string cartToOrderPercent { get; set; }
        /// <summary>
        /// 下单转化率		
        /// </summary>
        public string buyoutsPercent { get; set; }


    }

    public class statistics_stocks
    {
        /// <summary>
        /// FBS库存余量	
        /// </summary>
        public string stocksMp { get; set; }
        /// <summary>
        /// 库存余量
        /// </summary>
        public string stocksWb { get; set; }

    }
}
